package com.jframe.sys.controller.utils;

/**
 * 本功能用获取于dwr的上下文
 */
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.directwebremoting.WebContext;
import org.directwebremoting.WebContextFactory;

public class BaseDwr extends SysService{
  private  WebContext getContext(){     
	  
         return WebContextFactory.get();    
  }    

  public  HttpServletRequest getRequest(){    
         return getContext().getHttpServletRequest();    
  }    

  public  HttpServletResponse getResponce(){    
         return getContext().getHttpServletResponse();    

  }    

  public  HttpSession getSession(){    
         return getContext().getSession(true);    

  } 
  
  
  
}